/*
 Navicat Premium Data Transfer

 Source Server         : sql server
 Source Server Type    : SQL Server
 Source Server Version : 16001135 (16.00.1135)
 Source Catalog        : Graduate Admission System
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 16001135 (16.00.1135)
 File Encoding         : 65001

 Date: 06/12/2024 21:49:59
*/


-- ----------------------------
-- Table structure for auth_user
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[auth_user]') AND type IN ('U'))
	DROP TABLE [dbo].[auth_user]
GO

CREATE TABLE [dbo].[auth_user] (
  [id] int  IDENTITY(1,1) NOT NULL,
  [password] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [last_login] datetimeoffset(7)  NULL,
  [is_superuser] bit  NOT NULL,
  [username] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [first_name] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [last_name] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [email] nvarchar(254) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [is_staff] bit  NOT NULL,
  [is_active] bit  NOT NULL,
  [date_joined] datetimeoffset(7)  NOT NULL
)
GO

ALTER TABLE [dbo].[auth_user] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of auth_user
-- ----------------------------
SET IDENTITY_INSERT [dbo].[auth_user] ON
GO

SET IDENTITY_INSERT [dbo].[auth_user] OFF
GO


-- ----------------------------
-- Auto increment value for auth_user
-- ----------------------------
DBCC CHECKIDENT ('[dbo].[auth_user]', RESEED, 1)
GO


-- ----------------------------
-- Uniques structure for table auth_user
-- ----------------------------
ALTER TABLE [dbo].[auth_user] ADD CONSTRAINT [auth_user_username_6821ab7c_uniq] UNIQUE NONCLUSTERED ([username] ASC)
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Primary Key structure for table auth_user
-- ----------------------------
ALTER TABLE [dbo].[auth_user] ADD CONSTRAINT [PK__auth_use__3213E83F17C6F59E] PRIMARY KEY CLUSTERED ([id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

